/*
 * Util.java
 *
 * Created on 10 de abril de 2007, 22:25
 *
 */

package futbol.tacticas.concursantes2007.tikitaka.tactica;

import java.awt.Point;

/**
 *
 * @author Ismael Mariscal Mena
 */
public class Util {
    
    public static double distancia(Point p1, Point p2)
    {
        return Math.sqrt(Math.pow(p1.x-p2.x,2)+Math.pow(p1.y-p2.y,2));
    }
    
    public static double distancia_2(Point p1, Point p2)
    {
        return Math.pow(p1.x-p2.x,2)+Math.pow(p1.y-p2.y,2);
    }
}
